/** 
 * 整个项目api的统一管理
 */
import request from "./request";

// 请求首页左侧的表格的数据

export default {
    getTableData() {
        return request({
            url: "/home/getTableData",
            method: 'get',
            mock: true
        })
    },
    getCountData() {
        return request({
            url: "/home/getCountData",
            method: 'get',
        })
    },
    getChartData() {
        return request({
            url: "/home/getChartData",
            method: 'get',
            mock: true
        })
    },
    getUserData(params: any) {
        return request({
            url: "/user/getUserList",
            method: 'get',
            params: params,
            mock: true,
        })
    },
    deleteUser(params: any) {
        return request({
            url: "/user/deleteUser",
            method: 'put',
            data: params,
        })
    },
    addUser(params: any) {
        return request({
            url: "/user/addUser",
            method: 'post',
            data: params,
        })
    },
    updateUser(params: any) {
        return request({
            url: "/user/updateUser",
            method: 'post',
            data: params,
        })
    },

}


